package com.gxa.service.impl;

import com.gxa.mapper.AttentionMapper;
import com.gxa.pojo.Attention;
import com.gxa.service.AttentionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created with IntelliJ IDEA
 * User: bear
 * Date: 2020/09/25
 * Description
 * Version: V1.0
 */
@Service("attentionService")
public class AttentionServiceImpl implements AttentionService {

    @Resource
    AttentionMapper attentionMapper;


    @Override
    public Integer add(Attention attention) {

        return attentionMapper.add(attention.getDoctorId(),attention.getPatientId());
    }

}
